/**
 * PagRelatorios.java
 * 
 * Projeto: SGA-LEDS
 * 
 * Rodrigo Soares Maia
 * IFES - Instituto Federal do Espírito Santo - Campus Serra
 */

package controleAtividades.cih;

import controleInterno.cci.CtrlInterno;
import controleInterno.cdp.Colaborador;
import controleInterno.cdp.Projeto;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Executions;
import org.zkoss.zk.ui.util.GenericForwardComposer;
import org.zkoss.zul.Label;

public class PagRelatorios extends GenericForwardComposer
{
    private Label label;
    
    private Projeto p;
    private Colaborador c;
    
    CtrlInterno ctrl = CtrlInterno.getInstance();

    public void doAfterCompose(Component comp) throws Exception
    {
        super.doAfterCompose(comp);
        
        //ctrl.setWinExecucao(this);
        
        p = (Projeto) Executions.getCurrent().getSession().getAttribute("projeto");
        c = (Colaborador) Executions.getCurrent().getSession().getAttribute("colaborador");
        
        label.setValue(p.getNome());
    }  
}
